home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Applications / Moscow ML 1.31 / source code / mosml / src / Makefile < prev    next >
Encoding:
Makefile  |  1996-07-03  |  1.7 KB  |  74 lines  |  [TEXT/R*ch]

  1. # Unix Makefile for Moscow ML
  2. # Based on the corresponding Caml Light file (copyright INRIA, 1993)
  3.  
  4. # To build the Moscow ML system on a new machine for the first time, 
  5. #       (1) edit MOSMLHOME etc. in file Makefile.inc
  6. #    (2) execute `make world'
  7.  
  8. # To install it, execute `make install'
  9.  
  10. include Makefile.inc
  11.  
  12. # Build the entire system for the first time
  13.  
  14. world:
  15.     cd config; sh autoconf gcc    
  16.     cd runtime; make all
  17.     cp runtime/camlrunm .
  18.     cd mosmlyac; make all
  19.     cd mosmllib; make all
  20.     cd compiler; make all
  21.     cd toolssrc; make all
  22.     cd lex; make all
  23.     cd launch; make all
  24.  
  25. uptodate:
  26.     cd runtime; make all
  27.     cp runtime/camlrunm .
  28.     cd mosmlyac; make all
  29.     cd mosmllib; make all
  30.     cd compiler; make all
  31.     cd toolssrc; make all
  32.     cd lex; make all
  33.     cd launch; make all
  34.  
  35. # Recompile all Mosml code from scratch
  36. again:
  37.     cd mosmllib; make clean all
  38.     cd compiler; make clean all
  39.     cd toolssrc; make clean all
  40.     cd lex; make clean all
  41.  
  42. # Install the Mosml system
  43. install:
  44.     mkdir -p $(BINDIR)
  45.     mkdir -p $(LIBDIR)
  46.     mkdir -p $(TOOLDIR)
  47.     cd runtime; make install BINDIR=$(BINDIR)
  48.     cd launch; make all install
  49.     cd mosmlyac; make install BINDIR=$(BINDIR)
  50.     cd mosmllib; make install
  51.     cd compiler; make install
  52.     cd toolssrc; make install
  53.     cd lex; make install
  54.  
  55. # Remove all generated files
  56. clean:
  57.     cd config; make clean
  58.     cd runtime; make clean
  59.     cd launch; make clean
  60.     cd mosmlyac; make clean
  61.     cd mosmllib; make clean
  62.     cd compiler; make clean
  63.     cd toolssrc; make clean
  64.     cd lex; make clean
  65.     rm -f camlrunm
  66.  
  67. # Rebuild the dependencies in all Makefiles.
  68. # You can't do this unless you have a compiled runtime system.
  69. depend:
  70.     cd mosmllib; make depend
  71.     cd mosmlyac; make all
  72.     cd compiler; make depend
  73.     cd lex; make depend
  74.